//
//  CustomCenterHeadTableViewCell.m
//  LaiKeDaoClient
//
//  Created by zzs on 15/11/5.
//  Copyright © 2015年 LKD. All rights reserved.
//

#import "CustomCenterHeadTableViewCell.h"
#import "UIImageView+WebCache.h"
@implementation CustomCenterHeadTableViewCell

- (void)awakeFromNib {
    // Initialization code
    self.headImageView.layer.cornerRadius = 31;//设置那个圆角的有多圆
}

- (void)reloadCell:(NSDictionary *)baseDic
{
    if (baseDic[@"head_ico"]) {
        [self.imageView setImageWithURLString:baseDic[@"head_ico"]];
    }
    if (baseDic[@"doctor_name"]) {
        self.nameLabel.text = baseDic[@"doctor_name"];
    }
    if (baseDic[@"is_examine"]) {
        //0审核中，1通过审核，2未通过审核
        if ([baseDic[@"is_examine"] intValue] == 0) {
            self.checkLabel.text = @"审核中";
        }else if ([baseDic[@"is_examine"] intValue] == 1){
            self.checkLabel.text = @"通过审核";
        }else{
            self.checkLabel.text = @"未通过审核";
        }
    }
    if (baseDic[@"hospital_name"]) {
        self.subTitleLabel.text = [NSString stringWithFormat:@"%@ %@",baseDic[@"hospital_name"],baseDic[@"job_name"]];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
